def st(b):
    s = []
    for i in b:
        if len(b) > 2:
            if i == 'zero':
                s.append('0')
            elif i == 'one':
                s.append('1')
            elif i == 'two':
                s.append('2')
            elif i == 'three':
                s.append('3')
            elif i == 'four':
                s.append('4')
            elif i == 'five':
                s.append('5')
            elif i == 'six':
                s.append('6')
            elif i == 'seven':
                s.append('7')
            elif i == 'eight':
                s.append('8')
            elif i == 'nine':
                s.append('9')
            else:
                return 'Wrong input'
        else:
            return 'Wrong input'
    return s
b = input().split(' ')
print(*st(b), sep = '')
            
